import { Controller } from 'egg';

export class BaseController<
    Service = any
    > extends Controller {
    constructor(ctx) {
        super(ctx);
    }

    /** request context */
    protected srv: Service;

    public async test1() {
        const { ctx, srv } = this;
        console.log('BaseController fn ==> test1');
        console.log(srv);
        ctx.body = srv;
    }
}
